import request from '@/utils/request'

// 查询出版数量趋势列表
export function listPublishYearTrend(query) {
  return request({
    url: '/show/publishYearTrend/list',
    method: 'get',
    params: query
  })
}

// 查询出版数量趋势详细
export function getPublishYearTrend(id) {
  return request({
    url: '/show/publishYearTrend/' + id,
    method: 'get'
  })
}

// 新增出版数量趋势
export function addPublishYearTrend(data) {
  return request({
    url: '/show/publishYearTrend',
    method: 'post',
    data: data
  })
}

// 修改出版数量趋势
export function updatePublishYearTrend(data) {
  return request({
    url: '/show/publishYearTrend',
    method: 'put',
    data: data
  })
}

// 删除出版数量趋势
export function delPublishYearTrend(id) {
  return request({
    url: '/show/publishYearTrend/' + id,
    method: 'delete'
  })
}
